<h1>Lista de membros IEEE</h1>

<table>
  <tr>
    <th>Nome</th>
    <th>Número IEEE</th>
    <th>Email</th>
	<th>Ativo</th>
  </tr>

<% @members.each do |member| %>
  <tr>
    <td><%=h member.name %></td>
    <td><%=h member.number %></td>
    <td><%=h member.email %>@ieee.org</td>
	<td><%=h member.active%></td>
    <td><%= link_to 'Mostrar', member %></td>
    <td><%= link_to 'Editar', edit_member_path(member) %></td>
    <td><%= link_to 'Remover', member, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'Adicionar novo membro', new_member_path %>